import { get, post } from '@/utils/request'
import type { SiteHistoryAddDTO, SiteHistoryApi } from '@/interface'

export const querySiteList = () => {
  return get<SiteHistoryApi[]>('/site/query')
}

export const insertSite = (data: SiteHistoryAddDTO) => {
  return post('/site/add', data)
}
